Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRGoToNodeID

You can use the QTVRGoToNodeID function to set the current node of a movie.

OSErr QTVRGoToNodeID (QTVRInstance qtvr, UInt32nodeID);
qtvr
An instance of a QuickTime VR movie.
nodeID
The ID of the node you want to be the current node.
function result
A result code.

DESCRIPTION

The QTVRGoToNodeID function sets the current node in the QuickTime VR movie specified by the qtvr parameter to be the node that has the ID specified by the nodeID parameter.

The QuickTime VR Manager defines several constants for specific nodes. For example, you can set nodeID to kQTVRDefaultNode to set the current node to the default node in the scene. Similarly, you can set nodeID to kQTVRPreviousNode to return to the previous node. See "Node IDs" for a description of the available node ID constants.

SPECIAL CONSIDERATIONS

Setting the current node also sets the pan, tilt, and field of view of the new current node to their default values. As a result, you should call QTVRGoToNodeID before you call QTVRSetPanAngle , QTVRSetTiltAngle , or QTVRSetFieldOfView .

SEE ALSO

Use QTVRGetCurrentNodeID (next) to get the current node ID.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |